package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: ProductSkuMapper
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/20 20:21
 * Version 1.0
 */
@Mapper
public interface ProductSkuMapper {
    //2 获取商品的sku列表集合，保存sku信息，product_sku表
    void save(ProductSku sku);

    //2 根据商品id查询商品sku信息列表 product_sku
    List<ProductSku> findProductSkuByProductId(Integer id);

    //修改product_sku
    void updateById(ProductSku productSku);

    // 根据商品id删除商品的sku数据
    void deleteByProductId(Long id);
}
